package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveDishWithFlavor(DishDto dishDto);

    Page<DishDto> pageDishKDto(Integer page, Integer pageSize, String name);

    void deleteByIds(Long[] ids);

    DishDto getDishByIdWithFlavor(Long id);

    void putById(DishDto dishDto);

    List<DishDto> listDishDto(Long categoryId, String name);

    List<Dish> getDishBySetmealId(Long setmeal_id);

}
